package fr.vvins.core.biz.user.dto;

import java.io.Serializable;
import java.util.Date;

import fr.vvins.core.common.dto.BeanDtoImpl;
import fr.vvins.core.common.dto.BeanDtoInfoImpl;
import fr.vvins.core.common.dto.annotation.Dto;
import fr.vvins.core.user.entity.UserLog;

/**
 * Log entity
 */
@Dto(name="UserLog", entity=UserLog.class)
public class UserLogDto extends BeanDtoImpl implements Serializable {

	private static final long serialVersionUID = -2036119175439571345L;
	private UserDtoInfo user;
	private Date date;
	private String log;
	private UserLogActionDto action;
	private BeanDtoInfoImpl vigneron;
	private BeanDtoInfoImpl product;

	public UserLogDto() {
	}

	public UserLogDto(Integer id, UserDtoInfo user, Date date, String log) {
		super();
		this.id = id;
		this.user = user;
		this.date = date;
		this.log = log;
	}

	public UserDtoInfo getUser() {
		return user;
	}

	public void setUser(UserDtoInfo user) {
		this.user = user;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public UserLogActionDto getAction() {
		return action;
	}

	public void setAction(UserLogActionDto action) {
		this.action = action;
	}

	public BeanDtoInfoImpl getVigneron() {
		return vigneron;
	}

	public void setVigneron(BeanDtoInfoImpl vigneron) {
		this.vigneron = vigneron;
	}

	public BeanDtoInfoImpl getProduct() {
		return product;
	}

	public void setProduct(BeanDtoInfoImpl product) {
		this.product = product;
	}


}
